﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Areas/Admin/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Ovvio.Web.Areas.Admin.Models.UserModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Delete User
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Delete <%= Html.Encode(Model.Username) %></h2>

    <h3>Are you sure you want to delete [<%= Html.Encode(Model.Username) %>]?</h3>
    <fieldset>
        <legend>User</legend>
        
        <div class="display-label">Username </div>
        <div class="display-field" ><%= Html.Encode(Model.Username) %></div>
        
        <div class="display-label">First Name</div>
        <div class="display-field"><%= Html.Encode(Model.FirstName) %></div>
        
        <div class="display-label">Last Name</div>
        <div class="display-field"><%= Html.Encode(Model.LastName) %></div>
        
        <div class="display-label">Mobile</div>
        <div class="display-field"><%= Html.Encode(Model.Mobile) %></div>
        
        <div class="display-label">Email</div>
        <div class="display-field"><%= Html.Encode(Model.Email) %></div>
        
        <div class="display-label">Active</div>
        <div class="display-field"><%= Html.CheckBox("Active", Model.IsActive, new { @disabled = true })%></div>
        
        <div class="display-label">Role</div>
        <div class="display-field"><%= Html.Encode(Model.RoleDisplay) %></div>
        
        <div class="display-label">News Letter Subscriber</div>
        <div class="display-field"><%= Html.CheckBox("CheckBoxSubscriber", Model.IsNewsLetterSubscriber, new { @disabled = true })%></div>
        
    </fieldset>
    <% using (Html.BeginForm()) { %>
        <p>
		    <input type="submit" value="Delete" /> |
		    <%= Html.ActionLink("Back to List", "Index") %>
        </p>
    <% } %>

</asp:Content>

